var log = console.log;
//CPU架构信息
log('architecture',process.arch);
//CPU架构信息
log('platform:%s\n',process.platform);
//进程ID信息
log('process id:',process.pid);
//可执行文件路径
log('exePath:%s\n',process.execPath);
//常驻内存大小
log('rss:',process.memoryUsage().rss);
//Chrome V8动态分配堆的大小
log('heapTotal:',process.memoryUsage().heapTotal);
//Chrome V8动态分配可用内存
log('heapUsed:',process.memoryUsage().heapUsed);
//Chrome V8绑定到对象上的内存
log('external:%s\n',process.memoryUsage().external);